package com.stu.mapper;

import com.stu.App;
import com.stu.Pojo.DePartment;
import com.stu.Pojo.Employee;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.security.PublicKey;
import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = App.class)

public class Employeetest {
    @Autowired
    private EmployeeMapper employeeMapper;
    @Test
    public void selectALL() {
        List<Employee> l =employeeMapper.selectALL();
        l.forEach((s)-> System.out.println(s));
    }

}
